﻿using JetBrains.Annotations;
using Volo.Abp.Domain.Entities;

namespace ParkManagement
{
    /// <summary>
    /// 纠错类
    /// </summary>
    public class Correct : BasicAggregateRoot<int>
    {
        /// <summary>停车场名称</summary>
        public string Name { get; protected set; }

        /// <summary>纠错照片</summary>
        public string Photo { get; protected set; }

        /// <summary>问题描述</summary>
        public string Content { get; protected set; }

        /// <summary>备注</summary>
        public string Remark { get; protected set; }

        /// <summary>停车位数</summary>
        public int SpotCount { get; protected set; }

        private Correct() { }

        internal Correct(
            [NotNull] string name,
            [NotNull] string photo,
            [NotNull] string content,
            [NotNull] string remark,
            int spotCount)
        {
            Name = name;
            Photo = photo;
            Content = content;
            Remark = remark;
            SpotCount = spotCount;
        }
    }
}